#include "engine.h"

// Begin engine namespace
namespace engine
{
	// Singleton stuff
	bool Engine::instance_flag = 0;
	Engine* Engine::engine = 0;

	// Constructor and destructor
	Engine::Engine(){}
	Engine::~Engine(){}

	// Singleton getter
	Engine* Engine::getInstance()
	{
		if (instance_flag)
			return engine;
		
		instance_flag = true;
		engine = new Engine();
		return engine;
	}

	// Set up some flags
	void Engine::initialize()
	{
		this->done = false;
	}

	// Per-frame update
	void Engine::update()
	{

	}
}
// End engine namespace